package com.mgg.payment.service.order.impl;

import javax.annotation.Resource;

import com.mgg.common.dao.DaoSupport;
import com.mgg.common.dto.RefundOrderDTO;
import com.mgg.payment.service.order.RefundOrderService;
import org.springframework.stereotype.Service;

/**
 * @author lijun
 * 
 * @version
 */

@Service("refundOrderService")
public class RefundOrderServiceImpl implements RefundOrderService {

	@Resource(name = "daoSupport")
	private DaoSupport dao;

	@Override
	public RefundOrderDTO getRefundOrderByRoCode(String roCode) {
		return dao.findForObject("RefundOrderMapper.getRefundOrderByRoCode", roCode);
	}

	@Override
	public Integer updateRefundOrder(RefundOrderDTO refundOrder) {
		Integer count = dao.update("RefundOrderMapper.updateRefundOrder", refundOrder);
		return count;
	}
}
